<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  created(){
    this.toShoppingCart();
  },
  methods:{
    toShoppingCart(){
      this.$router.push({name:'ShoppingCart'});
    }
  }
}
</script>

<style>
#app{
  min-height: 100%;
  min-width: max-content; /*指定渲染时，安最大元素的宽度渲染*/
}
</style>
